package org.hdax.service;

import org.hdax.dao.EasybuyUserDao;
import org.hdax.entity.EasybuyUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EasybuyUserService {
    @Autowired
    private EasybuyUserDao easybuyUserDao;

    public EasybuyUser findByUserNameOrMobile(String hello){
        return easybuyUserDao.findByUserNameOrMobile(hello, hello);
    }

    public EasybuyUser findById(Integer id){
        return easybuyUserDao.findById(id).get();
    }
}
